<%@page import="com.tomatosystem.dto.ChattingDto"%>
<%@page import="com.tomatosystem.model.ChattingModel"%>
<%@ page contentType="text/html; charset=EUC-KR"%>
<% request.setCharacterEncoding("euc-kr"); %>
<html>
<head>
<title>write</title>
</head>
<body>
<%
String id = request.getParameter("id");
String content = request.getParameter("content");
ChattingModel dao = new ChattingModel();
ChattingDto dto = new ChattingDto();
dto.setId(id);
dto.setContent(content);
boolean isS = dao.addAnswerBoard(dto);
if(isS){
	response.sendRedirect("chat.jsp");
}else{
	response.sendRedirect("chat.jsp");
}
%>



</body>
</html>